683cf7fe6697886634ec6cb8a8af5bd29264bc31,src/main/java/org/HdrHistogram/ConcurrentHistogram.java,ConcurrentHistogram,setNormalizingIndexOffset,#number#number#boolean#,131
Before Change
// Save and clear the newly inactive 0 value count:
inactiveZeroValueCount =
inactiveCounts.get(normalizeIndex(0, inactiveCounts.getNormalizingIndexOffset()));
inactiveCounts.lazySet(normalizeIndex(0, inactiveCounts.getNormalizingIndexOffset()), 0);
// Change the normalizingIndexOffset on the newly inactiveCounts:
After Change
}
// Restore the inactive 0 value count:
zeroIndex = normalizeIndex(0, inactiveCounts.getNormalizingIndexOffset(), inactiveCounts.length());
inactiveCounts.lazySet(zeroIndex, inactiveZeroValueCount);
// switch active and inactive: